<template>
  <div class="footer">
    <div class="left">Copyright © 2019-{{ state.fullYear }} PMall积分商城. All rights reserved.</div>
    <div class="right"></div>
  </div>
</template>

<script setup>
import { onMounted, reactive } from 'vue'
const state = reactive({
  fullYear: ''
})
// 初始化执行方法
onMounted(() => {
  const date = new Date()
  state.fullYear = date.getFullYear()
})
</script>

<style scoped>
.footer {
  height: 50px;
  border-top: 1px solid #e9e9e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
</style>
